Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: let the provider decide when to reuse an existing subscription ID #2929

Merged
merged 1 commit into from
Sep 3, 2024

Conversation

Neurone
Copy link
Contributor

@Neurone Neurone commented Sep 2, 2024

Description:

This PR fixes #2926 (Websocket subscription creates same subscription ID for new connection from same client) by introducing a new environment variable that allows the JSON-RPC relay provider to choose the desired behavior.

The default value of WS_SAME_SUB_FOR_SAME_EVENT is set to "true" to match the current default behavior.

Related issue(s):

Fixes #2926

Notes for reviewer:

Checklist

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

Signed-off-by: Giuseppe Bertone <[email protected]>
Copy link

sonarcloud bot commented Sep 2, 2024

@Neurone Neurone changed the title Fix for #2926 fix: fix for #2926 Sep 2, 2024
@Neurone Neurone changed the title fix: fix for #2926 fix: let the provider decide when to reuse an existing subscription ID. Sep 2, 2024
@natanasow natanasow added this to the 0.56.0 milestone Sep 3, 2024
@natanasow natanasow added the enhancement New feature or request label Sep 3, 2024
@natanasow natanasow changed the title fix: let the provider decide when to reuse an existing subscription ID. fix: let the provider decide when to reuse an existing subscription ID Sep 3, 2024
Copy link
Collaborator

@natanasow natanasow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ebadiere ebadiere merged commit 9e3ccd3 into hashgraph:main Sep 3, 2024
41 of 49 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Websocket subscription creates the same subscription ID for new connection from the same client
4 participants